/**
 * 
 */
package com.rohan.apps.mileagetracker.server.db.locators;

import com.google.web.bindery.requestfactory.shared.ServiceLocator;

/**
 * @author R!
 *
 */
public class DaoServiceLocator implements ServiceLocator {

	/* (non-Javadoc)
	 * @see com.google.web.bindery.requestfactory.shared.ServiceLocator#getInstance(java.lang.Class)
	 */
	@Override
	public Object getInstance(Class<?> clazz) {
		
		try {
			return clazz.newInstance();
		} catch (InstantiationException e) {
			
			e.printStackTrace();
		} catch (IllegalAccessException e) {
			
			e.printStackTrace();
		}
		return null;
	}

}
